<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/sample/left-right-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://www.sinosoft.com.cn/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="treeViewBean"
		value="#{commonContentViewBean.allView[0]}" />
	<ui:param name="roleInfoViewBean"
		value="#{commonContentViewBean.allView[1]}" />
	<ui:param name="roleIdentityViewBean"
		value="#{commonContentViewBean.allView[2]}" />
	<ui:param name="roleMenuViewBean"
		value="#{commonContentViewBean.allView[3]}" />
	<ui:param name="roleUserViewBean"
		value="#{commonContentViewBean.allView[4]}" />
	<ui:define name="compLeft">
		<h:form id="#{compId}_form">			
			<ui:decorate
				template="/layout/iteration/tree/sino-tree-single-template.xhtml">
				<ui:param name="compViewBean" value="#{treeViewBean}" />
				<ui:param name="compId" value="#{commonContentViewBean.id}_tree" />
				<ui:param name="compSelectedNodeUpdate"
					value="main-tabSet:#{commonContentViewBean.id}_right_form" />
			</ui:decorate>
		</h:form>
	</ui:define>

	<ui:define name="compRight">
		<p:tabView activeIndex="0" 
			effect="opacity" effectDuration="normal">
			
			<p:tab title="角色信息" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="roleLayout-info.xhtml" />
			</p:tab>
			<p:tab title="角色权限" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="roleLayout-identity.xhtml" />
			</p:tab>
			<p:tab title="角色菜单" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="roleLayout-menu.xhtml" />
			</p:tab>
			<p:tab title="角色用户" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="roleLayout-user.xhtml" />
			</p:tab>
		</p:tabView>
	</ui:define>
</ui:composition>
